<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/common_tag.jsp"%>
<%@include file="/common/common_js.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<body>
<script type="text/javascript">
$(function(){
	  $(".formTable td:even").addClass("textRight"); 

})
</script>
<div style=" width: 100%;height: 100%">
  <!-- 数据录入表单  开始 -->
		<form method="post" id="resources_addForm" >
		<table  class="formTable" cellpadding="1" cellspacing="1">
			<tr>
			<s:hidden name="res.id"/>
				<td width="20%"><font style="color: red;">*</font>名称 </td><td width="80%"><input type="text" name="res.name" value="${res.name}" id="resname" class="easyui-validatebox width170 " required="required"> </td>
			</tr>
			<tr>
				<td>父级 </td><td><input name="res.parent.id" value="${res.parent.id }" class="easyui-combotree" data-options="url:'${ctx}/security/security_getResourcesJson.do',parentField : 'pid',lines : true,width:170"> </td>
			</tr>
			<tr>
				<td>标识 </td><td><input type="text" name="res.enname" value="${res.enname }" class="width170"> </td>
			</tr>
			<tr>	
				<td>类型 </td><td><input type="text" name="res.resourcetype" value="${ res.resourcetype}" class="width170"> </td>
			</tr>
			<tr>
				<td>图标 </td><td><input type="text" name="res.icon" class="width170" value="${res.icon }"></td>
			</tr>
			<tr>
				<td>系统 </td><td><input type="text" name="res.system.id" value="1" class="width170" disabled="disabled"></td>
			</tr>
			<tr>
				<td>子节点</td>
				<td>
					<input id="res_isleaf0" type="radio" value="0" name="res.isleaf" checked="checked">否
					<input id="res_isleaf0" type="radio" value="1" name="res.isleaf">是
				</td>
			</tr>
			<tr>	
				<td>状态</td>
				<td>
					<input id="res.status" type="radio" value="1" name="res.status" checked="checked">启用
					<input id="res.status" type="radio" value="0" name="res.status" >禁用
				</td>
			</tr>
			<tr>
				<td><font style="color: red;">*</font>链接 </td><td><input  type="text" name="res.link" value="${res.link }"  class="easyui-validatebox width170"  required="required"> </td>
			</tr>
			<tr><td>说明 </td><td colspan="3"><textarea style="width: 170px;height: 40px" name="res.memo"></textarea> </td></tr>
		</table>
		</form>
<!-- 数据录入表单  结束 -->
</div>
</body>